<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>商家信息维护</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
	<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript"	src="../resource/js/easyui/easyui-lang-zh_CN.js"></script>
	<link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	    <link rel="stylesheet" href="../resource/css/memberCenter/infowithoutmenu.css" type="text/css"></link>
	  <link rel="stylesheet" href="../resource/js/kindeditor-4.1/themes/default/default.css" />
	<link rel="stylesheet" href="../resource/js/kindeditor-4.1/plugins/code/prettify.css" />
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/kindeditor-min.js"></script>
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/plugins/code/prettify.js"></script>
	    
	<script type="text/javascript">
	  function  checkSave(){
	    var  title=$("#title").val();
	    var category = $('#category').val();
	    if(category == ""){
	    	alert("请填写信息分类");
	       $("#category").focus();
	       return false;
	    }
	    if(title.length==0){
	       alert("请填写信息标题");
	       $("#title").focus();
	       return false;
	    }
	  }
	
	
	</script>
  </head>
    <%
      String  brandId =request.getParameter("brandid");
    
    %>
  <body><estateTag:security></estateTag:security>
  	<center><jsp:include page="../index/top.jsp"></jsp:include></center>
      <div style="width: 100%;margin-top: 10p x;" align="center">
         <input id="menuCls" type="hidden" value="331">
			<table width="100%" class="layoutTab">
				<tr> 
				<!-- 	<td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
						<td valign="top" align="center">
									<form name="form" method="post"
										action="../shoperMessage/addOrUpdateMessage.shtml?"
										onsubmit="return checkSave()">
								<div class="position" align="left">
								 <label>
									您所在的位置：
								</label>
								拼购管理模块&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;商家管理&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;商家发布信息管理&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;信息维护</div>
					<br/><div class="info_top"></div>
					<div class="info_mid" align="center">
										<table width="960px" style="margin-left: 25px;" border="0" id="userinfo" cellpadding="1" cellspacing="1">
											<tr>
												<td align="center" colspan="2">
													<b>信息编辑 （<font color="red">*</font> 为必填项）</b>
													 <input type="hidden" name="shopId" value='${brandid}'/>
												</td>
											</tr>
											
											<tr>
												<td align="right" width="16%">
														<font color="red">*</font>信息分类:
 												</td>
												<td align="left">
														【&nbsp;<input type="text" id="category" name="shopmessage.category" style="width: 100px" maxlength="50"
															value="${shopmessage.category}" />&nbsp;】<font color="red">(注：最佳为4个汉字)</font>
												</td>
											</tr>

											<tr>
												<td align="right" width="16%">
														<font color="red">*</font>标题:
 												</td>
												<td align="left">
														<input type="text" id="title" name="shopmessage.title" size="80" maxlength="50"
															value="${shopmessage.title}" />
												</td>
											</tr>
											 
											<tr>
												<td align="right">
														内容：
												</td>
									                  <td>
									                	<textarea  style="width:800px;height:300px;" id="content1"  name="shopmessage.content">
									                      ${shopmessage.content}
									                  </textarea>
                  
												</td>
											</tr>

											<tr>
												<td colspan="2" align="center">
													 <input type="hidden" name="shopmessage.autding" value="">
													 <input type="hidden" name="shopmessage.deleteFlag" value="0">
                                                      <input type="hidden" name="shopmessage.id" value="${shopmessage.id}">
													<!-- 审核状态 未审核 -->

													<input type="submit" value="保存">
													&nbsp;
													<input type="button" value="返回" onclick="goback()">
												</td>
											</tr>
										</table>
										   </div>
			<div class="info_bottom">&nbsp;</div>
									</form>
								</td>
							</tr>
						</table>
		</div>          <input type="hidden"/>
						<div style="margin-top: 10px;">
		</div>    
		<script>
		

		
		
        var editor;
        KindEditor.ready(function(K) {
		               editor = K.create('#content1', {
		               allowFileManager : true,
		               uploadJson : '../resource/js/kindeditor-4.1/upload_json.jsp',
				       fileManagerJson : '../resource/js/kindeditor-4.1/file_manager_json.jsp',
                       items : [
					 	        'preview','source', '|', 'undo', 'redo', '|',  'cut', 'copy', 'paste',
						        'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
						        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
						        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
						        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
						        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
						       'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
						        'link', 'unlink'
                  ]
                        
                });
        });

				
		
		$(function(){
	     $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		 $("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		 $("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
        });
        
        function goback()
          {
            history.back();
          }
		</script>
  	<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center></body>
</html>
